package weifei.live.simulation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.springframework.stereotype.Repository;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("group_sort")
@Repository
public class GroupSort extends Model<GroupSort>
{
    @Getter
    public enum Column
    {
        ID("id"),
        SortID("sort_id"),
        GroupID("group_id");
        final String name;
        Column(String name) { this.name = name; }
    }


    private Integer id;
    @NotNull
    private Integer sortId;
    @NotNull
    private Integer groupId;

    public GroupSort () {}
    public GroupSort (int sortId, int groupId) {
        this.sortId = sortId;
        this.groupId = groupId;
    }
}

